<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Welcome to Yogette | Block Customer - Users</title>
        <link rel="Yogette icon" type="image/x-icon" href="/yogette.ico"/>
        <link href="<?php echo base_url(); ?>/yogette/css/yogette.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    ul { list-style: none;}
    </style>
    </head>
    <body>
        <div class="main">
            <img class="pinkcircle" src="<?php echo base_url(); ?>yogette/images/pinkCircle.jpg" ></img>
            <div class="Container" style="background-color: white;">   
                <div class="menulist">
                    <ul class="menulist-ul">
                    <li><img class="ice-cream" src="<?php echo base_url(); ?>yogette/images/logoIcon.jpg"/><a href="/yogette/member"><img src="<?php echo base_url(); ?>yogette/images/mainboard.jpg" class="home" alt="Yogette's Homepage"/></a></li>
                    </ul> 
                </div>
                <div class="rss-twitt" style="margin-right: 9em">
                    <div class="rss-twitt-div" >
                        <a class="metadata-blog-div-a" href="contact">help</a>
                        <?php if (!$this->session->userdata('c_logged_in')) { ?>
                            <?php if (!$this->session->userdata('e_logged_in')) { ?>
                                |-| <a class="metadata-blog-div-a" href="/yogette/user/login">Login</a>
                            <?php } else { ?>
                                |-| <a class="metadata-blog-div-a" href="/yogette/user/logout">LogOut</a>
                            <?php } ?>      
                        <?php } ?>
                        <?php if ($this->session->userdata('c_logged_in')) { ?> 
                            <?php if (!$this->session->userdata('e_logged_in')) { ?>
                                |-| <a class="metadata-blog-div-a" href="/yogette/user/logout">LogOut</a> 
                            <?php } else { ?>
                                |-| <a class="metadata-blog-div-a" href="/yogette/user/login">Login</a>
                            <?php } ?>            
                        <?php } ?>
                    </div><!-- end nav -->
                </div>
                <!-- Branding & Navigation -->
                <div class="mainlogo">
                    <div class="mainlogo-div">
                        <img class="mainlogo-pic" src="<?php echo base_url(); ?>yogette/images/mainlogo.JPG" alt="Yogette"/>
                    </div>
                </div>
                    <!-- check if there is movies queue list and print it or not and print the error -->
                        <div class="mainlogo-div" style ="text-align: center; margin: 0em 10em 10em 10em;" >
                            <?php
                            if ($items == false) {
                                ?> 
                                        <!--<table style="margin-left: 24em;  " cellspacing="0" cellpadding="4" border="4">
                                            <thead>
                                                <tr>
                                                <td><h1></h1></td>
                                                </tr>
                                            </thead>
                                            <tbody id="sortable1">
                                                <tr>
                                                <td><h1></h1></td>
                                                </tr>
                                            </tbody>
                                        </table>-->
                        </div>
                        <?php } else { ?>
                        <div class="mainlogo-div" style =" text-align: center; margin: 11em 0em 0em 3em;  ">   
                            <table cellspacing="1" cellpadding="4" border="4">
                                <thead style="font-family:monospace; font-style: oblique">
                                <tr>
                                <td>Reserve ID</td>
                                <td>Customer ID</td>
                                <td>Special ID</td>
                                <td>Store Location ID</td>
                                <td>Special Description</td>
                                <td>Reserve Date</td>
                                <td>Reserve Time Start</td>
                                <td>Reserve Time End</td>
                                <td>Lib Amount</td> 
                                <td>Black Listed Date</td>
                                <?php if ($this->session->userdata('e_logged_in')) { ?> 
                                <td>Actions</td>
                                 <?php } ?>
                                </tr>
                                </thead>
                                <tbody id="sortable1">
                                     <input type="hidden" name="items" id="items" 
                                        value="<?php echo $items; ?>" />
                                    <?php
                                    
                                    foreach ($items as $items) {
                                    $reserv_id = $items['reserv_id'];
                                    echo "<tr id='item_$reserv_id' class='ui-state-default'>"; ?>
                                        <td><?php echo $items['reserv_id']; ?></td>
                                        <td><?php echo $items['cus_id']; ?></td>
                                        <td><?php echo $items['spe_id']; ?></td>
                                        <td><?php echo $items['store_loc']; ?></td>
                                        <td><?php echo $items['special_desc']; ?></td>
                                        <td><?php echo $items['reserv_date']; ?></td>
                                        <td><?php echo $items['reserv_time_start']; ?></td>
                                        <td><?php echo $items['reserv_time_end']; ?></td>
                                        <td><?php echo $items['libility_amt']; ?></td>
                                        <td><?php echo $items['black_listed_date']; ?></td>
                                       <?php if ($this->session->userdata('e_logged_in')) { ?> 
                                        <td><?php echo anchor('yogette/user/hold/' . 
                                                $items['cus_id'] , 'Hold', array('class' => 'Hold')); ?>
                                        </td>
                                      <?php } ?>
                                    <?php echo "</tr>"; } ?>
                                </tbody>
                            </table>
                         </div>   
                           <?php } ?> 
                </div>
            </div>
      
        <!-- footer start-->
       <!-- <div class="pre-footer">   
        </div>
        <div class="footer">
            <div>
                <p class="footer-p1">yogurt is healthy</p>
            </div>
            <div>
                <p class="footer-p2">Copyright &COPY; 2010 YOGETTE.</p>
            </div>
        </div>
        <img class="post-footer" src="<?php// echo base_url(); ?>yogette/blank.jpg" id="blank" name="blank" /> -->
        <!-- footer ends-->
    </body>
</html>